<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {

    protected function _initDojo() {
        $this->bootstrap('view');
        $view = $this->getResource('view');
        Zend_Dojo::enableView($view);
        $view->dojo()->setLocalPath("/dojo/dojo/dojo.js")->addStyleSheetModule('dijit.themes.tundra')
                ->requireModule('dijit.dijit')
                ->requireModule('dojox.grid.DataGrid')
                ->requireModule('dojo.data.ItemFileWriteStore')
                ->requireModule('dojo.parser')
                ->requireModule("dojo.data.ItemFileReadStore");
    }

    protected function _initTranslate() {
        $translate = new Zend_Translate('array', APPLICATION_PATH . '/idiomas/', null, array('scan' => Zend_Translate::LOCALE_FILENAME, 'disableNotices' => 1));
        $registry = Zend_Registry::getInstance ();
        $registry->set('Zend_Translate', $translate);
    }

}

